import request from '@/util/request'

export default {
    //查询所有
    findTbspecifications() {
        return request({
            url:'/specification/list.do',
            method:'get'
        })
    },
    //分页查询
    findByPage(page, pageSize) {
        return request({
            url:`/specification/findByPage.do?page=${page}&pageSize=${pageSize}`,
            method: 'get',
        })
    },
    //输入查询带分页
    search(page,pageSize,data){
        return request({
            url: `/specification/search.do?page=${page}&pageSize=${pageSize}`,
            method: 'post',
            data
        })
    },
    //新建保存
    save(data){
        return request({
            url: '/specification/save.do',
            method: 'post',
            data
        })
    }
}